import { translate as $t } from "../../../language/index"
//自定义好数据格式，去返回数据里获取需要的

//客源重复范围： repeatScopeCustomer
export const customerRepetitionRange = [
    {
        optionCode: 'repeatScopeCustomer',
        optionValue: null,
        name: $t('text.System.l279'),
        loading: false,
        elementType: 0 //0-select,1-input,2-switch
    }
]

//求购掉客： priToPubCustomer,priToPubDaysCustomer,pubToRobCustomer,pubToRobDaysCustomer
export const buyLosingCustomers = [
    {
        optionCode: 'priToPubCustomer',
        optionValue: null,
        name: $t('text.System.l280'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'priToPubDaysCustomer',
        optionValue: null,
        name: $t('text.System.l281'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    },
    {
        optionCode: 'pubToRobCustomer',
        optionValue: null,
        name: $t('text.System.l282'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'pubToRobDaysCustomer',
        optionValue: null,
        name: $t('text.System.l283'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    }
]

//求租掉客: rentPriToPubCustomer,rentPriToPubDaysCustomer,rentPubToRobCustomer,rentPubToRobDaysCustomer
export const toRentOutCustomers = [
    {
        optionCode: 'rentPriToPubCustomer',
        optionValue: null,
        name: $t('text.System.l280'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'rentPriToPubDaysCustomer',
        optionValue: null,
        name: $t('text.System.l281'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    },
    {
        optionCode: 'rentPubToRobCustomer',
        optionValue: null,
        name: $t('text.System.l282'),
        loading: false,
        elementType: 2 //0-select,1-input,2-switch
    },
    {
        optionCode: 'rentPubToRobDaysCustomer',
        optionValue: null,
        name: $t('text.System.l283'),
        loading: false,
        elementType: 1 //0-select,1-input,2-switch
    }
]


export const selectList = [
    {
        name: '公司',
        value: 0
    },
    {
        name: '本大片区',
        value: 1
    },
    {
        name: '本小片区',
        value: 2
    },
    {
        name: '本门店',
        value: 3
    },
    {
        name: '本分组',
        value: 4
    },
    {
        name: '本人',
        value: 5
    }
]